package com.grape.service.take_delivery;


import java.util.Date;

import javax.ws.rs.Consumes;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.QueryParam;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import com.grape.domain.base.PageBean;
import com.grape.domain.take_delivery.Promotion;


@Produces({"application/xml" ,"application/json"})
public interface PromotionService {

	void save(Promotion model);

	Page<Promotion> findAll(Pageable pageable);
	
	
	// 分页展示促销
	@Path("/pageQuery")
	@GET
	@Consumes({ "application/xml", "application/json" })
	// c1指定区id,c2指客户id
	public PageBean<Promotion> pageQuery(@QueryParam("page") String page,@QueryParam("rows") String rows);
	
	
	// 获取促销详情
	@Path("/findOne")
	@GET
	@Consumes({ "application/xml", "application/json" })
	public Promotion findOne(@QueryParam("id") String id);

	void updateStatus(Date date);
}
